package com.crawling;

//特别注意，下面的是 tk.MapperScan

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author liuzh
 * @since 2015-12-12 18:22
 */
@SpringBootApplication
@MapperScan(basePackages = "com.crawling.mapper")
@Import(cn.hutool.extra.spring.SpringUtil.class)
public class CrawlingApplication implements CommandLineRunner {
    private Logger logger = LoggerFactory.getLogger(CrawlingApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(CrawlingApplication.class, args);
    }

    @Override
    public void run(String... args) {
        logger.info("服务启动完成!");
    }
}
